package com.itheima.homework2;

public class Circle implements ShapePara{
    public double radius;   //半径

    @Override
    public int getArea() {
        int Area = (int) (PI*radius*radius);
        return Area;
    }

    @Override
    public int getCircumference() {

        int Circumference = (int) (PI*2*radius);
        return Circumference;
    }

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
